home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-PPC / OHARE.H < prev    next >
Text File  |  1999-09-17  |  1KB  |  42 lines

  1. /*
  2.  * ohare.h: definitions for using the "O'Hare" I/O controller chip.
  3.  *
  4.  * Copyright (C) 1997 Paul Mackerras.
  5.  */
  6.  
  7. /* offset from ohare base for feature control register */
  8. #define OHARE_FEATURE_REG    0x38
  9.  
  10. /*
  11.  * Bits in feature control register.
  12.  * These were mostly derived by experiment on a powerbook 3400
  13.  * and may differ for other machines.
  14.  */
  15. #define OH_SCC_RESET        1
  16. #define OH_BAY_RESET        2    /* a guess */
  17. #define OH_BAY_PCI_ENABLE    4    /* a guess */
  18. #define OH_BAY_IDE_ENABLE    8
  19. #define OH_BAY_FLOPPY_ENABLE    0x10
  20. #define OH_IDE_ENABLE        0x20
  21. #define OH_BAY_ENABLE        0x80
  22. #define OH_SCC_ENABLE        0x200
  23. #define OH_MESH_ENABLE        0x400
  24. #define OH_FLOPPY_ENABLE    0x800
  25. #define OH_SCCA_IO        0x4000
  26. #define OH_SCCB_IO        0x8000
  27. #define OH_VIA_ENABLE        0x10000
  28. #define OH_IDECD_POWER        0x800000
  29.  
  30. /*
  31.  * Bits to set in the feature control register on PowerBooks.
  32.  */
  33. #define PBOOK_FEATURES        (OH_IDE_ENABLE | OH_SCC_ENABLE | \
  34.                  OH_MESH_ENABLE | OH_SCCA_IO | OH_SCCB_IO)
  35.  
  36. /*
  37.  * A magic value to put into the feature control register of the
  38.  * "ohare" I/O controller on Starmaxes to enable the IDE CD interface.
  39.  * Contributed by Harry Eaton.
  40.  */
  41. #define STARMAX_FEATURES    0xbeff7a
  42.